<?php echo $head; ?>
	 <script type="text/javascript">
	$(function() {
		var options4 =
		{
		zoomWidth: 320,
		zoomHeight: 312,
		title :false
		}
		$(".jqzoom").jqzoom(options4);
	});
	function switchTo(id) {
		document.getElementById('slide1').style.zIndex=(id==1)?'1':'-1';
		document.getElementById('slide2').style.zIndex=(id==2)?'1':'-1';
		document.getElementById('slide3').style.zIndex=(id==3)?'1':'-1';
		document.getElementById('slide4').style.zIndex=(id==4)?'1':'-1';
		document.getElementById('slide5').style.zIndex=(id==5)?'1':'-1';
		document.getElementById('slide6').style.zIndex=(id==6)?'1':'-1';
	}
	</script>
</head>
<?php
	$_link = $curr_link . $product->product_url;
	$_imglink = base_common . "upload/default/no_image.gif";        
	$price = "";
	if(!empty($product->spePrice)){
		$today = date("Y/m/d");			
		if(!empty($product->speStartDate)){
			if(!empty($product->speStartDate) && $today >= $product->speStartDate){
				if(empty($product->speEndDate) || $today <= $product->speEndDate)
					$price = $product->spePrice;
			}
			elseif(!empty($product->speEndDate) && $today <= $product->speEndDate){
				$price = $product->spePrice;										
			}
		}			
	}
	$_oriPriceView = format_number($product->price);        
	$_priceView = format_number($price);        
	if(!empty($product->image))
		$_imglink = $product_path . $product->image;
?>
<body>
	<div class="wrapper_main">
		<?php echo $header; ?>
		<div class="wrapper_content">
			<?php echo $left; ?>
			<div class="primary">
				<div class="navigator">
					<a href="<?php echo base; ?>"><?php echo $lang["navi"]["home"]; ?></a>
					<a href="<?php echo $curr_link; ?>"><?php echo $curr_menu; ?></a>
					<a><?php echo $product->productName; ?></a>							
				</div>
				<div class="clear"></div>
				<div class="content">
					<div class="san_pham ">
						<h1><?php echo $product->productName; ?></h1>
						<div class="product_detail_left" style="height:inherit;">
							<div class="slide_product" style="height:inherit;">                            	
								<div class="jqzoom_bg" style="height:inherit;">
									<a style="position:static; height:inherit;" href="<?php echo $_imglink; ?>" class="jqzoom" title="kawasaki" style="position:absolute;z-index:1" id="slide1"><img src="<?php echo $_imglink; ?>" width="309" style="position:static;" /></a>
                                    <div class="clear"></div>
								</div>
                                <div class="clear"></div>                                
							</div>
							<div class="clear"></div>
						</div>
						<div class="product_detail_right">
							<h3><?php echo $product->productName; ?></h3>
							<div class="thong_tin_sp">
								<h2><?php echo $lang["product"]["info"]; ?>:</h2>	
								<p><?php echo $product->productShortDesc; ?></p>						
							</div>
							<div class="gia_sp">                            	
								<label><?php echo $lang["product"]["price"]; ?></label><span class="cham">:</span><span <?php if(!empty($_priceView)) : ?>class="price_goc" <?php endif; ?>><?php echo $_oriPriceView; ?></span><span class="dong"> đ</span>
								<div class="clear"></div>
                                <?php if(!empty($_priceView)) : ?>
								<label><?php echo $lang["product"]["speprice"]; ?></label><span class="cham">:</span><span class="price_km"><?php echo $_priceView; ?></span><span class="dong"> đ</span>
								<div class="clear"></div>
                                <?php endif; ?>
								<!-- <input type="submit" value="Mua hàng" class="submit_muahang" /> -->
							</div>
							<div class="clear"></div>	
						</div>
						<div class="clear"></div>
						<?php if(!empty($other_product)) : ?>
						<div class="san_pham_cung_loai ">
							<h1><?php echo $lang["product"]["same_category"]; ?></h1>
                        	<?php echo $other_product; ?>						
							<div class="clear"></div>
						</div>
    	                <?php endif; ?>
					</div><!--end .san_pham-->
				</div><!--end .content-->
			</div><!--end .primary-->	
			<div class="clear"></div>	
		</div><!--end .wrapper_content-->
		<?php echo $footer; ?>	
	</div><!--end .wrapper_main-->
</body>
</html>
